﻿using Factory.MasterData.Materials.Dto;
using Factory.QualityControl.CommonDefects.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace Factory.QualityControl.CommonDefects
{
    /// <summary>
    /// 常见缺陷仓储接口
    /// </summary>
    public interface ICommonDefectAppService : IApplicationService
    {
        /// <summary>
        /// 添加常见缺陷
        /// </summary>
        /// <param name="commonDefectDto">常见缺陷的数据</param>
        /// <returns>返回结果</returns>
        Task<int> Insert(CommonDefectDto commonDefectDto);
        /// <summary>
        /// 常见缺陷信息分页显示
        /// </summary>
        /// <param name="pageIndex">当前页</param>
        /// <param name="pageSize">页容量</param>
        /// <param name="inquireInfo">常见缺陷描述</param>
        /// <returns>返回结果</returns>
        Task<PageResult> PageList(int pageIndex, int pageSize, string? inquireInfo);
        /// <summary>
        /// 删除常见缺陷信息
        /// </summary>
        /// <param name="id">常见缺陷主键</param>
        /// <returns>返回结果</returns>
        Task<int> Deleted(string id);
        /// <summary>
        /// 编辑常见缺陷信息
        /// </summary>
        /// <param name="commonDefectDto">编辑的常见缺陷</param>
        /// <returns>返回结果</returns>
        Task<int> Update(CommonDefectDto commonDefectDto);
    }
}
